/* =========================
   Base
========================= */
.ss_link{
  font-family: "Hiragino Kaku Gothic ProN","Helvetica Neue",Arial,"Hiragino Sans",Meiryo,sans-serif;
  text-align: center;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s cubic-bezier(.22,.61,.36,1),
              visibility .4s cubic-bezier(.22,.61,.36,1);
}

.ss_link *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ss_link img{
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.ss_link.active{
  opacity: 1;
  visibility: visible;
}

.ss_link.none{
  display: none;
}

/* =========================
   Overlay
========================= */
.ss_linkOverlay{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.85);
}

/* =========================
   Center containers
========================= */
.sslink_view,
.ss_linkCont{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .45s cubic-bezier(.22,.61,.36,1),
    transform .45s cubic-bezier(.22,.61,.36,1),
    visibility .45s cubic-bezier(.22,.61,.36,1);
  z-index: 10000;
}

.ss_linkCont{
  width: calc(680 / 750 * 100vw);
  transition-delay: .3s;
}

.sslink_view.active,
.ss_linkCont.active{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* =========================
   Loading text + dots (., .., ...)
========================= */
.sslink_viewTxt{
  margin-bottom: calc(65 / 750 * 100vw);
  font-size: calc(40 / 750 * 100vw);
  font-weight: 600;
  color: #000;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

/* Dots area reserved width so text doesn't jump */
.ss_dots{
  display: inline-block;
  width: 1.2em;          /* đủ chỗ cho "..." */
  margin-left: .12em;
  text-align: left;
  position: relative;
}

/* Create dots via pseudo element */
.ss_dots::before{
  content: "";
  animation: ss-dots 1.1s steps(4, end) infinite;
}

/* Steps: "", ".", "..", "..." */
@keyframes ss-dots{
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

/* =========================
   Result & Button
========================= */
.ss_linkWin,
.ss_linkLose{
  margin-bottom: calc(50 / 750 * 100vw);
}

.ss_linkClose{
  padding: calc(30 / 750 * 100vw) calc(70 / 750 * 100vw);
  font-size: calc(36 / 750 * 100vw);
  font-weight: 600;
  color: #737373;
  line-height: 1;
  display: inline-block;
  border-radius: calc(48 / 750 * 100vw);
  background: #fff;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: transform .2s cubic-bezier(.22,.61,.36,1),
              box-shadow .2s cubic-bezier(.22,.61,.36,1);
}

.ss_linkClose:hover{
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.ss_linkClose:active{
  transform: translateY(0);
  box-shadow: none;
}

/* =========================
   Desktop
========================= */
@media (min-width: 768px){
  .ss_linkCont{
    width: 510px;
  }

  .sslink_viewTxt{
    margin-top: 20px;
    margin-bottom: 50px;
    font-size: 32px;
  }

  .ss_linkWin,
  .ss_linkLose{
    margin-bottom: 40px;
  }

  .ss_linkClose{
    padding: 20px 45px;
    font-size: 24px;
    border-radius: 31px;
  }
}