/* Keep the next-card cue clear of the readable project face. */
.ce-projects .poker-next-card {
  transform: rotate(8deg) translate(250%, -22%) scale(.68);
}

@media (max-width: 680px) {
  .ce-projects .poker-stage-wrap {
    height: 560px;
    overflow: clip;
  }
  .ce-projects .poker-composition {
    left: 0;
    width: 100%;
    height: 560px;
    transform: none;
  }
  .ce-projects .showcase-wordmark {
    left: 0;
    top: 0;
    width: calc(100% - 66px);
    height: 68px;
    transform: none !important;
  }
  .ce-projects .poker-stage {
    left: 0;
    top: 76px;
    width: 100%;
    min-width: 0;
    height: 480px;
  }
  .ce-projects .poker-card {
    left: 50%;
    top: 16px;
    width: min(320px, calc(100% - 24px));
    height: 450px;
    transform: translateX(-50%) !important;
    transform-origin: center center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform .36s ease, opacity .2s ease !important;
  }
  .ce-projects .poker-card[data-slot="3"] {
    transform: translateX(-50%) translateY(-7px) rotate(-2deg) scale(.98) !important;
  }
  .ce-projects .poker-card[data-slot="2"] {
    transform: translateX(-50%) translateY(-13px) rotate(2deg) scale(.96) !important;
  }
  .ce-projects .poker-card[data-slot="1"],
  .ce-projects .poker-card[data-slot="0"] {
    transform: translateX(-50%) translateY(-18px) scale(.94) !important;
  }
  .ce-projects .poker-card:not([data-slot="4"]) {
    pointer-events: none;
  }
  .ce-projects .poker-card:not([data-slot="4"]) > * {
    visibility: hidden;
  }
  .ce-projects .poker-card-visual {
    height: 184px;
    flex: 0 0 184px;
  }
  .ce-projects .poker-card-body {
    min-height: 0;
    padding: 12px 14px;
  }
  .ce-projects .poker-card-title {
    font-size: 19px;
  }
  .ce-projects .poker-card-desc {
    font-size: 13px;
    line-height: 1.65;
  }
  .ce-projects .poker-card-tags {
    margin-bottom: 8px;
  }
  .ce-projects .poker-card-tags span {
    font-size: 10px;
  }
  .ce-projects .poker-card-footer {
    padding-top: 8px;
  }
  .ce-projects :is(.poker-detail-btn, .poker-repo-btn) {
    min-height: 44px;
    font-size: 12px;
  }
  .ce-projects .poker-next-card {
    left: auto;
    right: 5px;
    top: -66px;
    width: 44px;
    height: 64px;
    border-radius: 8px;
    transform: rotate(7deg) !important;
    box-shadow: 0 4px 12px rgba(10, 20, 23, .1);
  }
  .ce-projects .poker-bottom-bar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 0;
    padding: 0;
  }
  .ce-projects .poker-dots-bar {
    gap: 0;
    margin: 0;
  }
  .ce-projects .poker-dot,
  .ce-projects .poker-dot.is-active {
    position: relative;
    width: 32px;
    height: 44px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .ce-projects .poker-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    transform: translate(-50%, -50%);
  }
  .ce-projects .poker-dot.is-active::after {
    width: 24px;
    background: var(--teal);
  }
  .ce-projects .poker-mini-all-btn {
    position: static;
    margin: 0;
    min-height: 44px;
  }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
  .ce-projects .poker-card {
    transition: none !important;
  }
}
