/* ===== Phone card (TikTok pile item) ===== */
.pile-phone {
  box-sizing: border-box;
  width: 180px;
  height: 340px;
  border: 3px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  justify-self: center;
  position: relative;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform: translate(var(--ox), var(--oy)) rotate(var(--rot));
  transform-style: preserve-3d;
}

.pile-phone:hover {
  box-shadow: 12px 12px 0 0 var(--border);
  z-index: 100;
}

.phone-notch {
  width: 50px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  position: absolute;
  top: 14px;
}

.phone-screen-label {
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.phone-sub-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.phone-home-bar {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: absolute;
  bottom: 12px;
}

/* ===== Dark mode: keep phone card light ===== */
[data-theme="dark"] .pile-phone {
  background: var(--card-keep-bg);
  border-color: var(--card-keep-border);
  color: var(--card-keep-text);
}

[data-theme="dark"] .pile-phone:hover {
  box-shadow: 12px 12px 0 0 var(--card-keep-shadow);
}

[data-theme="dark"] .phone-screen-label {
  color: var(--card-keep-text);
}

[data-theme="dark"] .phone-sub-label {
  color: var(--card-keep-muted);
}

[data-theme="dark"] .phone-notch,
[data-theme="dark"] .phone-home-bar {
  background: var(--card-keep-border);
}

/* ========================================
   TIKTOK SCROLL
   ======================================== */

.tiktok-cta {
  font-family: 'Bangers', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--bg);
  background: var(--border);
  border: 3px solid var(--border);
  padding: 12px 20px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s;
  align-self: center;
}

.tiktok-cta:hover {
  opacity: 0.85;
}

.tiktok-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tiktok-phone {
  width: 340px;
  border: 4px solid var(--border);
  border-radius: 36px;
  background: var(--bg-card);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  box-shadow: 8px 8px 0 var(--border);
}

.tiktok-phone-notch {
  width: 80px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}

.tiktok-phone-home {
  width: 50px;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 10px;
}

.tiktok-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 580px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 8px;
  overflow-x: hidden;
}

.tiktok-scroll::-webkit-scrollbar {
  display: none;
}

.tiktok-embed-wrap {
  flex: 0 0 100%;
  width: 100%;
  height: 580px;
  scroll-snap-align: start;
  overflow: hidden;
}

.tiktok-embed-wrap iframe,
.tiktok-embed-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.tiktok-nav-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tiktok-arrow {
  all: unset;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: 'Bangers', sans-serif;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tiktok-arrow:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--border);
}

.tiktok-counter {
  font-family: 'Bangers', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  /* Phone pile item */
  .pile-phone {
    border-radius: 12px;
  }
  .phone-notch { display: none; }
  .phone-home-bar { display: none; }
  .phone-screen-label { font-size: 16px; }
  .phone-sub-label { font-size: 9px; }

  /* TikTok scroll */
  .tiktok-row {
    flex-direction: column;
    gap: 14px;
  }
  .tiktok-phone {
    width: 280px;
    border-width: 3px;
    border-radius: 28px;
  }
  .tiktok-scroll,
  .tiktok-embed-wrap {
    height: 480px;
  }
  .tiktok-nav-arrows {
    flex-direction: row;
  }
  .tiktok-cta {
    font-size: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 400px) {
  .phone-screen-label { font-size: 14px; }
  .tiktok-phone { width: 240px; }
  .tiktok-scroll,
  .tiktok-embed-wrap { height: 400px; }
}
