.skh {
  --skh-blue: #3b82f6;
  --skh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --skh-steam: #67c1f5;
  margin: 1.35rem 0 0;
  padding: 1.5rem 1rem 1.25rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(37, 99, 235, 0.16), transparent 62%),
    #121214;
  opacity: 1;
  transform: none;
}

.skh.is-on {
  opacity: 1;
  transform: none;
}

.skh__head {
  max-width: 38rem;
  margin: 0 auto 0.85rem;
  text-align: center;
}

.skh__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.7rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.skh__title {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.skh__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  line-height: 1.55;
}

.skh__lead strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.skh__stage {
  position: relative;
  height: 380px;
  max-width: 46rem;
  margin: 0 auto;
  overflow: hidden;
}

.skh__grid {
  position: absolute;
  inset: 6% 6%;
  z-index: 0;
  border-radius: 1.1rem;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 42%, transparent 78%);
  pointer-events: none;
}

.skh__cam {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transform-origin: 50% 48%;
  opacity: 1;
  transition:
    transform 1.15s var(--skh-ease),
    opacity 0.48s ease;
}

.skh[data-cam="wide"] .skh__cam {
  transform: scale(0.92);
}

.skh[data-cam="approach"] .skh__cam {
  transform: scale(1.02);
}

.skh[data-cam="work"] .skh__cam {
  transform: scale(1.1) translateY(6px);
}

.skh[data-cam="success"] .skh__cam {
  transform: scale(1.16) translateY(-2px);
}

.skh[data-cam="reveal"] .skh__cam {
  transform: scale(0.96);
}

.skh.is-replay .skh__cam {
  opacity: 0.28;
}

.skh-cover {
  position: absolute;
  z-index: 1;
  margin: 0;
  width: 88px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--skh-ease), transform 0.9s var(--skh-ease);
}

.skh.is-on .skh-cover {
  opacity: 1;
}

.skh.is-on[data-cam="work"] .skh-cover {
  opacity: 0.18;
}

.skh.is-on[data-cam="success"] .skh-cover {
  opacity: 0;
}

.skh.is-on[data-cam="work"] .skh-cover--tl,
.skh.is-on[data-cam="success"] .skh-cover--tl {
  transform: translate(-14px, -8px);
}

.skh.is-on[data-cam="work"] .skh-cover--tr,
.skh.is-on[data-cam="success"] .skh-cover--tr {
  transform: translate(14px, -8px);
}

.skh.is-on[data-cam="work"] .skh-cover--bl,
.skh.is-on[data-cam="success"] .skh-cover--bl {
  transform: translate(-16px, 10px);
}

.skh.is-on[data-cam="work"] .skh-cover--br,
.skh.is-on[data-cam="success"] .skh-cover--br {
  transform: translate(16px, 10px);
}

.skh-cover__in {
  display: block;
  overflow: hidden;
  border-radius: 0.55rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.skh.is-on .skh-cover__in {
  animation: skh-float 8.8s ease-in-out infinite;
}

.skh.is-on .skh-cover--tl .skh-cover__in { animation-delay: 0s; }
.skh.is-on .skh-cover--tr .skh-cover__in { animation-delay: 1.1s; }
.skh.is-on .skh-cover--bl .skh-cover__in { animation-delay: 2.2s; }
.skh.is-on .skh-cover--br .skh-cover__in { animation-delay: 3.1s; }

.skh-cover img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.skh-cover--tl { top: 16px; left: 6px; }
.skh-cover--tr { top: 10px; right: 6px; }
.skh-cover--bl { bottom: 22px; left: 20px; }
.skh-cover--br { bottom: 18px; right: 20px; }

@keyframes skh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.skh-display {
  position: relative;
  z-index: 3;
  width: min(74%, 372px);
  flex-shrink: 0;
}

.skh-display::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: -18px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.48), transparent 72%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.9s var(--skh-ease);
}

.skh[data-cam="work"] .skh-display::after,
.skh[data-cam="success"] .skh-display::after {
  opacity: 0;
}

.skh-display__bezel {
  padding: 8px 8px 9px;
  border-radius: 14px;
  background: linear-gradient(180deg, #32363e 0%, #14161a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 28px 56px rgba(0, 0, 0, 0.48);
}

.skh-client {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 292px;
  overflow: hidden;
  border-radius: 8px;
  background: #171a21;
}

.skh-client__menu {
  display: flex;
  flex-shrink: 0;
  gap: 0.85rem;
  padding: 0.42rem 0.75rem;
  background: #171a21;
  color: #dcdedf;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.skh-client__menu span:first-child {
  color: var(--skh-steam);
  font-weight: 700;
}

.skh-client__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #1b2838;
}

.skh-lib {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  height: 100%;
  padding: 0.7rem 0.7rem 0.45rem;
}

.skh-lib__slot {
  display: block;
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.05);
}

.skh-lib__slot--game {
  overflow: hidden;
  background: #0d1117;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.45s var(--skh-ease), transform 0.45s var(--skh-ease), box-shadow 0.45s ease;
}

.skh-lib__slot--game.is-in {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 1px rgba(103, 193, 245, 0.38);
}

.skh-lib__slot--game img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skh-lib__slot--game img:not([src]),
.skh-lib__slot--game img[src=""] {
  display: none;
}

.skh-modal,
.skh-ok {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(94%, 268px);
  padding: 0.85rem 0.9rem 0.8rem;
  overflow: visible;
  border-radius: 0.2rem;
  border: 1px solid #3d4450;
  background: #1b2838;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.97);
  pointer-events: none;
  transition:
    opacity 0.28s var(--skh-ease),
    visibility 0.28s var(--skh-ease),
    transform 0.28s var(--skh-ease),
    box-shadow 0.4s ease;
}

.skh-modal.is-open,
.skh-ok.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.skh[data-cam="success"] .skh-ok.is-open {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(103, 193, 245, 0.22);
}

.skh-modal h4,
.skh-ok h4 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.skh-modal p,
.skh-ok p {
  margin: 0 0 0.5rem;
  color: #b8bcc2;
  font-size: 0.72rem;
  letter-spacing: 0;
  line-height: 1.45;
}

.skh-modal__ex {
  margin-bottom: 0.65rem !important;
  color: #8f98a0 !important;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem !important;
}

.skh-field {
  display: flex;
  align-items: center;
  min-height: 2.15rem;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.65rem;
  overflow: hidden;
  border-radius: 0.15rem;
  border: 1px solid #417a9b;
  background: #121b24;
  color: #fff;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.skh-field.is-focus {
  border-color: var(--skh-steam);
  box-shadow: 0 0 0 1px rgba(103, 193, 245, 0.28);
}

.skh-field.is-pasted {
  background: #16324a;
}

.skh-key {
  display: inline-block;
  min-height: 1.4em;
  line-height: 1.4;
  white-space: nowrap;
}

.skh-caret {
  flex-shrink: 0;
  width: 1px;
  height: 0.95rem;
  margin-left: 1px;
  background: var(--skh-steam);
  opacity: 0;
}

.skh-modal.is-open .skh-caret {
  opacity: 1;
  animation: skh-blink 0.7s steps(1) infinite;
}

@keyframes skh-blink {
  50% { opacity: 0; }
}

.skh-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.skh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.4rem;
  height: 1.85rem;
  padding: 0 0.65rem;
  border-radius: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.skh-btn--ghost {
  color: #dcdedf;
  background: #3d4450;
}

.skh-btn--go {
  color: #fff;
  background: linear-gradient(#47bfff, #1a9fff);
}

.skh-btn--go.is-wait {
  background: #417a9b;
}

.skh-ok__ico {
  display: flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.5rem;
  border-radius: 999px;
  background: rgba(26, 159, 255, 0.18);
  color: var(--skh-steam);
  opacity: 0;
  transform: scale(0.86);
}

.skh-ok.is-open .skh-ok__ico {
  animation: skh-ico-in 0.45s var(--skh-ease) forwards;
}

@keyframes skh-ico-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.skh-ok__ico svg {
  width: 1.05rem;
  height: 1.05rem;
  overflow: visible;
}

.skh-ok__ico svg path {
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
}

.skh-ok.is-open .skh-ok__ico svg path {
  animation: skh-draw 0.5s var(--skh-ease) 0.12s forwards;
}

@keyframes skh-draw {
  to { stroke-dashoffset: 0; }
}

.skh-ok__game {
  margin: 0 0 0.3rem !important;
  color: var(--skh-steam) !important;
  font-size: 0.8rem !important;
  font-weight: 700;
  line-height: 1.4;
}

.skh-ok__game:empty {
  display: none;
}

.skh-ok p:last-child {
  margin-bottom: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

.skh-client__foot {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  height: 2.2rem;
  padding: 0 0.55rem;
  background: #171a21;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.skh-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c6d4df;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.18s ease;
}

.skh-add i {
  display: flex;
  width: 1.15rem;
  height: 1.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.15rem;
  background: rgba(255, 255, 255, 0.08);
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease;
}

.skh-add.is-hot {
  color: #fff;
}

.skh-add.is-hot i {
  background: #1a9fff;
  color: #fff;
}

.skh-pop {
  position: absolute;
  left: 0.45rem;
  bottom: calc(100% + 4px);
  z-index: 6;
  min-width: 13.5rem;
  padding: 0.2rem;
  border: 1px solid #3d4450;
  border-radius: 0.15rem;
  background: #3d4450;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transform-origin: 12px 100%;
  transition: opacity 0.18s var(--skh-ease), visibility 0.18s var(--skh-ease), transform 0.18s var(--skh-ease);
}

.skh-pop.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.skh-pop span {
  display: block;
  padding: 0.42rem 0.55rem;
  color: #dcdedf;
  font-size: 0.72rem;
  line-height: 1.3;
  border-radius: 0.1rem;
}

.skh-pop span.is-hot {
  background: #1a9fff;
  color: #fff;
}

.skh-cursor {
  position: absolute;
  z-index: 12;
  width: 22px;
  height: 22px;
  left: 58%;
  top: 38%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transform: none;
  transform-origin: 1.1px 0.8px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.5));
  transition:
    left 0.64s var(--skh-ease),
    top 0.64s var(--skh-ease),
    transform 0.14s ease,
    opacity 0.22s ease;
}

.skh-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.skh-cursor.is-visible {
  opacity: 1;
}

.skh-cursor.is-click {
  transform: scale(0.86);
}

.skh__cta,
a.skh__cta[href="/ativar-key"] {
  display: none !important;
}

@media (min-width: 700px) {
  .skh__stage {
    height: 430px;
  }

  .skh-cover {
    width: 108px;
  }

  .skh-cover img {
    height: 144px;
  }

  .skh-cover--tl { left: 10px; }
  .skh-cover--tr { right: 10px; }
  .skh-cover--bl { left: 30px; }
  .skh-cover--br { right: 30px; }

  .skh-display {
    width: 380px;
  }

  .skh-client {
    height: 312px;
  }
}

@media (max-width: 560px) {
  .skh__stage {
    height: 310px;
  }

  .skh-cover {
    width: 58px;
  }

  .skh-cover img {
    height: 78px;
  }

  .skh-cover--tl { top: 10px; left: 2px; }
  .skh-cover--tr { top: 8px; right: 2px; }
  .skh-cover--bl { bottom: 14px; left: 8px; }
  .skh-cover--br { bottom: 12px; right: 8px; }

  .skh-display {
    width: min(82%, 292px);
  }

  .skh-client {
    height: 248px;
  }

  .skh-client__menu span:nth-child(n+4) {
    display: none;
  }

  .skh[data-cam="approach"] .skh__cam {
    transform: scale(1);
  }

  .skh[data-cam="work"] .skh__cam {
    transform: scale(1.06) translateY(3px);
  }

  .skh[data-cam="success"] .skh__cam {
    transform: scale(1.1);
  }

  .skh-modal,
  .skh-ok {
    width: min(94%, 230px);
    padding: 0.7rem 0.72rem 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skh,
  .skh__cam,
  .skh-cover,
  .skh-cover__in,
  .skh-modal,
  .skh-ok,
  .skh-ok__ico,
  .skh-ok__ico svg path,
  .skh-cursor,
  .skh-pop,
  .skh-lib__slot--game {
    animation: none !important;
    transition: none !important;
  }

  .skh {
    opacity: 1;
    transform: none;
  }

  .skh__cam,
  .skh[data-cam="reveal"] .skh__cam {
    transform: none;
    opacity: 1;
  }

  .skh-cover,
  .skh-ok,
  .skh-ok.is-open,
  .skh-ok__ico {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .skh-cursor {
    display: none;
  }
}
